<?php

namespace iBrand\Member\Backend\Models;

class Balance extends \iBrand\Component\Balance\Model\Balance
{
	public function setValueAttribute($value)
	{
		$this->attributes['value'] = $value * 100;
	}

	public function user()
	{
		return $this->belongsTo(\iBrand\Shop\Core\Models\User::class, 'user_id');
	}
}
